package com.lifa.controller;

import com.lifa.dao.BanlirenDao;
import com.lifa.dao.ChongZhiDao;
import com.lifa.entity.Banliren;
import com.lifa.entity.Chongzhi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/banliren")
@Scope("prototype")
public class BanlirenController {

    @Autowired
    private BanlirenDao banlirenDao;

    @RequestMapping("/chax")
    @ResponseBody
    public List<Banliren> chax() {
        return banlirenDao.chax();
    }

}
